package org.edu.modules.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.mapping.StatementType;
import org.edu.modules.system.entity.ProcessStep;

/**
 * @Author lbh
 * @Date 2025/2/13 上午9:10
 * @Version 1.0
 */
public interface ProcessStepMapper extends BaseMapper<ProcessStep> {

    @Options(statementType = StatementType.CALLABLE)
    void saveProcessStep(@Param("processTypeId") Integer processTypeId,
                          @Param("stepsJson") String stepsJson);

    @Options(statementType = StatementType.CALLABLE)
    int getLastInsertId();
}
